//
//  RegisterViewController.m
//  Stream
//
//  Created by shaw on 16/7/31.
//  Copyright © 2016年 showshaw. All rights reserved.
//

#import "RegisterViewController.h"

@interface RegisterViewController ()
@property (weak, nonatomic) IBOutlet UIButton *registerButton;

@property (weak, nonatomic) IBOutlet UIButton *checkCodeButton;
@end

@implementation RegisterViewController

-(void)viewWillAppear:(BOOL)animated
{
     [self.navigationController setNavigationBarHidden:YES];
    
    if (_type == RegisterTypeRegister) {
        self.title = @"注册";
        [self.registerButton setTitle:@"注册" forState:UIControlStateNormal];
    }else{
        self.title = @"找回密码";
        [self.registerButton setTitle:@"找回密码" forState:UIControlStateNormal];
    }
}

- (void)viewDidLoad {
    [super viewDidLoad];

    
    //setup view
    [self setupView];

}
//点击注册
- (IBAction)didClickedRegisterButton:(UIButton *)sender {
    [MBProgressHUD showMessage:@"coding..." hide:YES];
}
//获取验证码
- (IBAction)didClickedGetCheckCodeButton:(UIButton *)sender {
    [MBProgressHUD showMessage:@"already send" hide:YES];
}


-(void)setupView
{
    self.registerButton.layer.cornerRadius = 3;
    self.registerButton.layer.masksToBounds = YES;
}




@end
